home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / network / dis_pkt9.zip / DIS_PKT9.DOC < prev    next >
Text File  |  1991-11-02  |  14KB  |  358 lines

  1. File    DIS_PKT.DOC                        3 Nov 1991
  2. From:    Joe R. Doupnik
  3.     Utah State University
  4.     Logan Utah 84322
  5.     jrd@cc.usu.edu
  6.     (801) 750-2982 voice
  7.     (801) 750-2992 fax
  8.  
  9. What DIS_PKT.DOS does: It provides an Ethernet or a Token Ring Packet Driver
  10. interface to programs built to operate over Packet Drivers. It talks
  11. to NDIS (3Com/Microsoft) instead of to a lan board directly. It shares
  12. the board with NDIS users. We call this a "shim", sitting between the
  13. normal applications program (NetWare shells, TCP/IP, etc) and the more
  14. hardware specific portions (NDIS in this case).
  15.  
  16.     Packet Driver flavored applications        NDIS flavored applications
  17.         ||                    ||
  18.         -------------                ||
  19.         |  DIS_PKT  |                ||
  20.         -------------                ||
  21.         ||                    ||
  22.         ------------------------------------------
  23.         |           main module              |
  24.         |   NDIS    ........................      |
  25.         |        board specific driver(s)      |
  26.         -------------------------------------------
  27.                   ||
  28.             --------------------------------
  29.             | Ethernet/Token Ring board(s)    |
  30.             --------------------------------
  31.                   ||
  32.         =================================== Ethernet/Token Ring wire
  33.         
  34.  
  35. Material added to version 1.09 (as compared to v1.07) -
  36.  
  37.  o Support for using old Novell 802.3 packets on the wire while using Type
  38.    8137 packets to the application. The BYU Packet Driver Novell shell
  39.    kit requires Type 8137 packets be used by the shell. The keyword "NOVELL="
  40.    in the section [pktdrv] determines whether or not conversion occurs. If a 
  41.    y is placed after the NOVELL= phrase then conversion occurs:
  42.     novell = y        (case independent)
  43.    This option provides the same feature as the "-n" option of a regular
  44.    Packet Driver from the Clarkson collection.
  45.    Conversion does not occur if the right hand side is not a y, nor if the 
  46.    entire line is omitted.
  47.    Conversion occurs only if the NDIS driver uses Ethernet 802.3 packets; this
  48.    also means dis_pkt provides a Packet Driver Class 1 interface to apps.
  49.  
  50.  o Support for Ethernet 802.3 with 802.2 headers and Token Ring 802.5 NDIS 
  51.    drivers, as Packet Driver Class 11 and 3, respectively. The NOVELL= option
  52.    does not apply to these boards. Dan Lanciani of Harvard added this part.
  53.  
  54.  
  55.  
  56. First sample PROTOCOL.INI file:
  57.  
  58. [protocol manager]
  59.     drivername = PROTMAN$
  60.  
  61. [pktdrv]            <-- name of this driver entry
  62.   drivername = pktdrv$        <-- formal driver name
  63.   bindings = wd8003xmac        <-- use your board's NDIS driver here
  64.   intvec = 0x60            <-- Packet Driver Int, 60h..7fh
  65.   chainvec = 0x66        <-- daisy chained Pkt Drvr Int, unused
  66.   novell = y            <-- Optional, if present and y(es) then
  67.                     convert between old Novell 802.3 pkts
  68.                     on the wire and Type 8137 for the app.
  69.                     Omitting this line or using any other
  70.                     response turns off the conversion; 
  71.                     default is no conversion.
  72.  
  73. [attiso]
  74.   drivername = ATTISO$        <-- Another NDIS client
  75.   bindings = wd8003xmac        <-- bound to the same harware driver
  76.   nsess = 5
  77.   ncmds = 14
  78.   use_emm = n
  79.  
  80. Western Digital EtherCard PLUS Family Adapter    <-- Ethernet board
  81. [wd8003xmac]                    <-- its ndis driver
  82.     drivername = MACWD$
  83.     irq = 7
  84.     ramaddress = 0xCA00
  85.     iobase = 0x280
  86.     receivebufsize = 1536    <-- make this a full Ethernet pkt
  87.  
  88.  
  89.  
  90.  
  91. Sample section of CONFIG.SYS (StarGROUP material is not required):
  92.  
  93. device=c:\lanman\protman.sys /i:c:\lanman    <-- must be first
  94. device=c:\lanman\macwd.dos            <-- WD8003E driver
  95. device=c:\lanman\dis_pkt.dos            <-- Pkt Driver (this program)
  96. device=c:\lanman.dos\drivers\attload.dos /Y    <-- StarGROUP NDIS 
  97. device=c:\lanman.dos\drivers\attiso\attiso.dos    <-- StarGROUP NDIS
  98. device=c:\qemm\loadhi.sys /r:1 e:\pctcp\ifcust.sys  <-- PC/TCP stuff
  99. device=c:\qemm\loadhi.sys /r:4 e:\pctcp\ipcust.sys  <-- etc
  100.  
  101.  
  102.  A second, more elaborate example, with names easier to type. We start with
  103. file PROTOCOL.INI. Note that semicolons start comment lines.
  104.  
  105. ; This is a sample protocol.ini file listing three Ethernet boards:
  106. ;    attcsma.dos is an AT&T StarLAN 10 EN100
  107. ;    elnkii.dos  is a 3Com 3C503
  108. ;    wd8003.dos  is a Western Digital WD8003E
  109. ; Only one board will be selected but the other two are present.
  110.  
  111. [protocol manager]
  112.     drivername = PROTMAN$
  113.  
  114. ; Packet Driver protocol users tie in here
  115. [pktdrv]
  116.     drivername = pktdrv$
  117.     bindings = attcsma
  118. ;    bindings= elnkii
  119. ;    bindings = wd8003
  120.     intvec = 0x60
  121. ;    chainvec = 0x66        ; chaining to another Packet Driver is unused
  122.     novell = no        ; do not convert packet types this time
  123.  
  124. ; AT&T StarGROUP protocol stack ties in here via name ATTISO$
  125. [attiso]
  126.     drivername = ATTISO$
  127.     bindings = attcsma
  128. ;    bindings = elnkii
  129. ;    bindings = wd8003
  130.     nsess = 5
  131.     ncmds = 14
  132.     use_emm = n
  133.  
  134. ;Western Digital EtherCard PLUS Family Adapter, WD8003E in this case
  135. [wd8003]
  136.     drivername = MACWD$
  137.     irq = 7
  138.     ramaddress = 0xCA00
  139.     iobase = 0x280
  140.     receivebufsize = 1536
  141. ;    maxtransmits = 6
  142. ;    receivebuffers = 6
  143. ;    receivechains = 6
  144.  
  145. ; 3Com Etherlink II, 3C503
  146. [elnkii]
  147.     drivername = ELNKII$
  148.     ioaddress = 0x350
  149.     interrupt = 5
  150.     transceiver = onboard
  151.     maxtransmits = 12
  152.     xmitbufs = 1
  153.  
  154. ; AT&T StarLAN 10 EN100
  155. [attcsma]
  156.     drivername = ATTCSMA$
  157.     board_type = 2
  158.     irq = 2
  159.     ioaddr = 0x360
  160.     daram = 0xD000
  161.  
  162. ; End of file protocol.ini
  163.  
  164. Fragment of config.sys for the second example. Note three .dos board drivers.
  165.  
  166. device=c:\system\ramdrive.sys 1024 512 128 /E
  167. device=c:\lanman\protman.sys /i:c:\lanman.dos\drivers\star10en
  168. device=c:\lanman\attcsma.dos
  169. device=c:\lanman\elnkii.dos
  170. device=c:\lanman\macwd.dos
  171. device=c:\lanman\dis_pkt.dos
  172. device=c:\lanman.dos\drivers\attload.dos /Y
  173. device=c:\lanman.dos\drivers\attiso\attiso.dos
  174. device=c:\qemm\loadhi.sys /r:1 e:\pctcp\ifcust.sys
  175. device=c:\qemm\loadhi.sys /r:4 e:\pctcp\ipcust.sys
  176. device=c:\qemm\loadhi.sys /r:4 c:\netdev.sys
  177. shell=c:\command.com  /p /e:800
  178.  
  179. It seems to be necessary to run NETBIND.EXE to get all this to be active.
  180. Some Lan Manger network startup routines run Netbind implicitly.
  181.  
  182.  
  183. Copyright notice and disclaimer from the beginning of the source code
  184. file dis_pkt.asm:
  185.  
  186. ; DIS_PKT.ASM - Adapter provides Packet Driver v1.09 interface over NDIS.
  187. ; Version 1.07  18 May 1991  by Joe R. Doupnik, Utah State Univ.
  188. ; Version 1.08  9 Aug 1991 by Dan Lanciani, ddl@harvard.harvard.edu
  189. ; Version 1.09  3 Nov 1991 by Joe R. Doupnik, Utah State Univ.
  190. ; Copyright (C) 1988 - 1991 FTP Software, Inc.
  191.  
  192. This unmodified source file and it's executable form may be used and
  193. redistributed freely.  The source may be modified, and the source or
  194. executable versions built from the modified source may be used and
  195. redistributed, provided that this notice and the copyright displayed by
  196. the exectuable remain intact, and provided that the executable displays
  197. an additional message indicating that it has been modified, and by whom.
  198.  
  199. FTP Software Inc. releases this software "as is", with no express or
  200. implied warranty, including, but not limited to, the implied warranties
  201. of merchantability and fitness for a particular purpose.
  202.  
  203. USE AT YOUR OWN RISK.
  204.  
  205. To build, using Microsoft MASM 5 or later, LINK 3.64 or later, and EXE2BIN:
  206.  
  207. masm dis_pkt;
  208. link dis_pkt;
  209. exe2bin dis_pkt.exe dis_pkt.dos
  210. del dis_pkt.exe
  211. del dis_pkt.obj
  212.  
  213.  
  214.  
  215. Here is an excerpt from the formal NDIS v2 specification document by 3Com
  216. and Microsoft concerning what goes into the PROTOCOL.INI file.
  217.  
  218.  PROTOCOL.INI
  219.  The PROTOCOL.INI file stores configuration and binding
  220.  information for all the protocol and MAC modules in the system.
  221.  The file uses the same general format as the LANMAN.INI file.  It
  222.  consists of a series of named sections, where the section name is
  223.  in fact the module name from a module characteristics table.
  224.  Below the bracketed module name is a set of configuration
  225.  settings for the module in name=value format.
  226.  For example:
  227.  
  228.  [MYNetBIOS]
  229.  Drivername = NetBIOS$
  230.  Bindings = ETHERCARD
  231.  MaxNCBs = 16
  232.  MaxSessions = 32
  233.  MaxNames = 16
  234.  
  235.  The rules for PROTOCOL.INI contents are:
  236.  
  237.  o Bracketed module name.  Must be the name of a protocol or MAC
  238.    module, e.g. [MYNetBIOS].  This is the name of the module as
  239.    defined in that module's